package com.shangxian.giveithome.utils;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;

public class MyBeanUtils {

    public static void copyBeanNull(Object oldObj, Object newObj) {
        BeanUtil.copyProperties(oldObj, newObj,
                CopyOptions.create().setIgnoreNullValue(true).setIgnoreError(true));
    }
}
